package com.example.aidocengine.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("device_info")
public class DeviceInfo {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String stationName;
    
    private String voltageLevel;
    
    private String deviceName;
    
    private String deviceCode;
    
    private String deviceType;
    
    private String deviceDoubleCode;
    
    private String deviceCategory;
    
    // 主变设备特有字段
    private String transformerLevel; // 主变电压等级(变高/变中/变低)
    private Long parentDeviceId; // 父设备ID-用于主变层级关系
    
    // Excel解析辅助字段
    private Integer excelRowNumber; // Excel行号-用于调试
    private String excelSheetName; // Excel工作表名称
    
    private Integer status;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdTime;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;
}